<template>
  <view class="u-m-t-20">
    <view class="u-p-30 bg-white">
    	<view class="flex">
				<view class="u-m-r-20" v-if="titleInfo.merch_id == 0">
					<!-- <uni-tag text="自营" style="background-color:#FF9C58;border-color:#FF9C58"></uni-tag> -->
                <!-- #ifdef APP-PLUS -->
					<text class="u-p-x-10 text-white rounded-8" style="height: 35rpx;line-height: 35rpx;background:#ff9c58;font-size: 26rpx;">自营</text>
                <!-- #endif -->
				<!-- #ifndef APP-PLUS -->
					<text class="u-p-x-10 text-white rounded-8" style="height: 35rpx;line-height: 35rpx;background:#ff9c58;">自营</text>
				<!-- #endif -->
				</view>
    		<text class="text-ellipsis-2 font-weight-bold " style="width: 590rpx;font-size: 26rpx;">{{titleInfo.goods_name }}</text>
			</view>
    	<view class="flex flex-row justify-between u-m-t-18">
    	  <text class="text-greey t-font-24">销量{{titleInfo.goods_sales}}</text>
    	  <text class="text-greey t-font-24">当前库存{{titleInfo.stock_num || 0}}</text>
    	  <text class="text-greey t-font-24">{{titleInfo.address}}</text>
    	</view>
    </view>
  </view>
</template>

<script>
  export default {
    name: "goods-detail-title",
    props: {
    	titleInfo: {
    		type: Object,
    		default() {
    			return {}
    		}
    	}
    },
    methods: {
      
    }
  }
</script>

<style lang="scss" scoped>
</style>
